//
//  XKLProgress.m
//  GuiZiShouDuanZi
//
//  Created by xmg on 16/5/5.
//  Copyright © 2016年 xiao_kl. All rights reserved.
//

#import "XKLProgress.h"

@implementation XKLProgress

-(void)awakeFromNib{
    self.roundedCorners = 2;
    self.progressLabel.textColor = [UIColor whiteColor];
}

-(void)setProgress:(CGFloat)progress animated:(BOOL)animated{
    [super setProgress:progress animated:animated];
    NSString *text = [NSString stringWithFormat:@"%.0f%%",progress * 100];
    self.progressLabel.text = text;
}
@end
